﻿using JZ.JiangSu.Application.Services;
using JZ.JiangSu.IApplication.IServices;
using JZ.JiangSu.IRepository;
using JZ.JiangSu.Model.Entity;
using JZ.JiangSu.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DependencyAttribute = Unity.Attributes.DependencyAttribute;

namespace JZ.JiangSu.Application.Services
{
    public class CompanyInfoService: ApplicationService<CompanyInfo>,ICompanyInfoService
    {
        [Dependency]
        public ICompanyInfoRepository _repository { get; set; }

        public IList<CompanyInfo> GetTopVipCompany(int topNumber)
        {
            //Logger.Warn("让我试试你行不行");
            var result=_repository.GetTopVipCompany(topNumber);
            //base._repository.GetEntityById(result[0].ID);
            return result; 
        }
    }
}
